package com.sfexpress.mycatweb.entity.monitor;

import java.io.Serializable;

import org.hyperic.sigar.Mem;

public class MemStat implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long total;
	private long used;
	
	public static MemStat transform(Mem sigarMem) {
		MemStat memStat = new MemStat();
		memStat.setTotal(sigarMem.getTotal());
		memStat.setUsed(sigarMem.getUsed());
		return memStat;
	}

	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	public long getUsed() {
		return used;
	}
	public void setUsed(long used) {
		this.used = used;
	}
	
}
